Automatic generation of software test cases from formal specifications

نویسنده

  • Christophe Meudec
چکیده

Software testing consumes a large percentage of total software development costs. Yet, it is still usually performed manually in a non rigorous fashion. While techniques, and limited automatic support, for the generation of test data from the actual code of the system under test have been well researched, test cases generation from a high level speci cation of the intended behaviour of the system being developed has hardly been addressed. In this thesis we present a rationale for using tests derived from high level formal speci cations and then set to nd an e cient technique for the generation of adequate test sets from speci cations written in our study language, VDM-SL. In this work, we formalise the traditional high level partitioning technique used in a previously researched test cases generator prototype, and extend it to take the semantics of VDM-SL fully into account. We then discuss, and illustrate, the shortcomings of the technique as used, which results in too few tests being generated and potentially large sections of a speci cation not employed by the test generation process. Another strand of research, based on test generation from Z predicates, is examined and extended using our formalism to include quanti ed expressions and other, more complex, constructs of formal speci cation languages. We then show that this more re ned technique complements the previous work and that their combination should allow the generation of adequate test sets from formal speci cations. Using our formalism, we illustrate that to synthesise pragmatically the two techniques, one must nd heuristics for the detection of redundant test cases. We present our central heuristic, justi ed using probabilities, based on the independence of some divisions of the input domain of the system under test, which allows the contraction of test sets without impairing their likelihood of revealing an error in the system under test. Finally, we propose a technique for the e cient generation of adequate test cases. Acknowledgements I wish to thank Dr. Ivor Spence, my supervisor, for his help and patience during the course of this work. I would also like to thank Mr. John Clark and Prof. John McDermid of the university of York for allowing me to pursue my work while being employed on one of their projects. This work was partially funded in its rst year by the SERC (grant number 92313295). It was generously funded by a EU Human Capital and Mobility grant (number ERBCHB CT93 0328) for two years. Prof. Maurice Clint and the department of computer science at Queen's at large, must be thanked for their e orts in obtaining this latest grant. Finally, I am indebted to my wife, Tracey, and my son Mikael for putting up with me during di cult times and encouraging me all the way. i To the memory of my parents. ii

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Automated Test Case Generation from IFAD VDM++ Specifications

Most of the current research on automatic generation of test cases from formal specifications has been directed towards non object-oriented formal specifications. While objectoriented paradigm is the most widely accepted methodology for software development, generation of test cases from object-oriented formal specifications is still a relatively unexplored area. In this paper, we present a nov...

متن کامل

Semi-Automatic Test Case Generation from CO-OPN Specifications

In this paper we will describe our work on automatic generation of tests for Systems Under Test (SUT) described in the CO-OPN specification language that has been developed in our laboratory. CO-OPN (Concurrent Object Oriented Petri Nets) is a formalism for describing concurrent software systems that possesses most of the characteristics we can find in mainstream semi-formal modeling languages....

متن کامل

Test Generation using Model Checking

Testing in the software industry is, in general an ad hoc task. There are guidelines to follow but in most cases do not cover sufficient portions of the software product. Recent work has been done to automatically generate test cases such that designers are no longer responsible for designing the test cases but ensuring that the specification of the software is valid. These formal specification...

متن کامل

Automatic Test Cases Generation for Statechart Specifications from Semantics to Algorithm

This paper studies automatic test cases generation for Statechart specifications. Applying Tretmans’ approach to generate test cases from labeled transition systems, we provide a solid mathematical basis for conformance testing and automatic test case generation for Statechart specifications. In order to make the test cases generation process more simple and efficient, we propose observable sem...

متن کامل

Automatic Test Cases Generation from Software Specifications

A new technique is proposed in this paper to extend the Integrated Classification Tree Methodology (ICTM) developed by Chen et al. [13] This software assists testers to construct test cases from functional specifications. A Unified Modelling Language (UML) class diagram and Object Constraint Language (OCL) are used in this paper to represent the software specifications. Each classification and ...

متن کامل

Automatic Test Case Generation for OCL: a Mutation Approach

Fault-based testing is a technique where testers anticipate errors in a system under test in order to assess or generate test cases. The idea is to have enough test cases capable of detecting these anticipated errors. This work presents a method of fault-based test case generation for preand postcondition specifications. Here, errors are anticipated on the specification level by mutating the pr...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1998